// com.lesso.cyg.sunflower.infra.assembler.EmployeeDeviceRelAssembler.java
package com.lesso.cyg.sunflower.infra.assembler;

import com.lesso.cyg.sunflower.model.EmployeeDeviceRel;
import com.lesso.cyg.sunflower.pojo.dto.EmployeeDeviceRelDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 员工考勤设备关系装配器
 */
@Mapper
public interface EmployeeDeviceRelAssembler {
    EmployeeDeviceRelAssembler INSTANCE = Mappers.getMapper(EmployeeDeviceRelAssembler.class);

    // 实体与DTO互转
    EmployeeDeviceRel dtoToEntity(EmployeeDeviceRelDTO dto);
    EmployeeDeviceRelDTO entityToDto(EmployeeDeviceRel entity);

    // 集合转换
    List<EmployeeDeviceRelDTO> entityListToDtoList(List<EmployeeDeviceRel> entityList);
    List<EmployeeDeviceRel> dtoListToEntityList(List<EmployeeDeviceRelDTO> dtoList);
}